package com.data.modules.online.cgform.enums;

public enum DataBaseEnum {
    MYSQL("MYSQL", "1"),
    ORACLE("ORACLE", "2"),
    SQLSERVER("SQLSERVER", "3"),
    POSTGRESQL("POSTGRESQL", "4");
    
    private String name;
    private String value;

    private DataBaseEnum(String name2, String value2) {
        this.name = name2;
        this.value = value2;
    }

    public static String getDataBaseNameByValue(String value2) {
        DataBaseEnum[] values = values();
        for (DataBaseEnum dataBaseEnum : values) {
            if (dataBaseEnum.value.equals(value2)) {
                return dataBaseEnum.name;
            }
        }
        return MYSQL.name;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name2) {
        this.name = name2;
    }

    public String getValue() {
        return this.value;
    }

    public void setValue(String value2) {
        this.value = value2;
    }
}
